-- Function: insertabecarios(integer, character)

-- DROP FUNCTION insertabecarios(integer, character);

CREATE OR REPLACE FUNCTION insertabecarios(integer, character)
  RETURNS integer AS
$BODY$
DECLARE 
	iClave 		ALIAS FOR $1;
	cBecario	ALIAS FOR $2;
	Variable 	integer;
BEGIN
		insert into becarios values (iClave,cBecario);
RETURN Variable;
end;
$BODY$
  LANGUAGE plpgsql VOLATILE
  COST 100;
ALTER FUNCTION insertabecarios(integer, character) OWNER TO syspsgrd;
